home *** CD-ROM | disk | FTP | other *** search
-
-
-
- - 1 -
-
-
-
- 6. _E_x_a_m_p_l_e_s__o_n__I_R_I_S__W_o_r_k_s_t_a_t_i_o_n_s
-
- _t_t_s_a_m_p_l_e_1__s_g_i is a ported version of ttsample1. It uses X
- and Motif instead of Xview and compiles and runs on IRIS
- workstations.
-
- _t_t_s_a_m_p_l_e_2__s_g_i__c_l_i_e_n_t and _t_t__s_a_m_p_l_e_2__s_g_i__s_e_r_v_i_c_e combine to
- make a new example in Silicon Graphics ToolTalk that
- demonstrates the _p_t_y_p_e and _a_u_t_o_s_t_a_r_t capabilities. If you
- want to build and run these programs, you must have:
-
- +o X11 Development Environment (_x__d_e_v._s_w)
-
- +o Motif Execution-Only Environment (_m_o_t_i_f__e_o_e)
-
- +o Motif Development System (_m_o_t_i_f__d_e_v)
-
- in addition to having the prerequisites listed in Section
- 2.4.
-
- To build these programs, type:
-
- %%%% ccccdddd ////uuuussssrrrr////TTTToooooooollllTTTTaaaallllkkkk////eeeexxxxaaaammmmpppplllleeeessss
- % cp *sgi* /usr/tmp
- %%%% ccccdddd ////uuuussssrrrr////ttttmmmmpppp
- % mkdir ~/.tt
-
- The next command merges a new ptype into ~/._t_t/_t_y_p_e_s._x_d_r if
- this file exists.
-
- %%%% mmmmaaaakkkkeeee ----ffff MMMMaaaakkkkeeeeffffiiiilllleeee....ssssggggiiii aaaallllllll
-
- You are now ready to run. Type:
-
- %%%% ttttttttssssaaaammmmpppplllleeee1111____ssssggggiiii
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - 2 -
-
-
-
- You can now move the _S_e_n_d slider, then press the _B_r_o_a_d_c_a_s_t
- button. This sends a message to ToolTalk, which is then
- received by _t_t_s_a_m_p_l_e_1__s_g_i, and the _R_e_c_e_i_v_e slider will be
- updated.
-
- %%%% ttttttttssssaaaammmmpppplllleeee2222____ssssggggiiii____cccclllliiiieeeennnntttt
-
- Again, you can send the value. This time a new process,
- _t_t_s_a_m_p_l_e_2__s_g_i__s_e_r_v_i_c_e, is autostarted. The new process
- receives the message and replies, updating the original
- calling client, _t_t_s_a_m_p_l_e_2__s_g_i__c_l_i_e_n_t. In this case, the
- service returns the value ((val_in + 1) %100) to show that
- the service is responsible for setting the new value and
- sending it back in the reply.
-
- %%%% kkkkiiiillllllllaaaallllllll ttttttttsssseeeessssssssiiiioooonnnn
-
- This kills the ToolTalk server that was autostarted to
- service these examples. You should also quit or kill the
- example programs.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-